Carbon


CountResources

Header: Resources.h Carbon status: Supported

Returns the total number of available resources of a given type.

SInt16 CountResources (
    ResType theType
);
theType

A resource type.

The total number of resources of the given type in all resource forks open to your application.

DISCUSSION

To check for errors, call the ResError function.

AVAILABILITY

Supported in Carbon. Available in Mac OS 8.1 and later when Carbon 1.0.2 or later is present.


© 2000 Apple Computer, Inc. — (Last Updated 5/8/2000)